package com.runnor.common.websys.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.runnor.common.websys.system.entity.SysRole;
import com.runnor.common.websys.system.mapper.SysRoleMapper;
import com.runnor.common.websys.system.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author runnor
 * @description 针对表【sys_role】的数据库操作Service实现
 * @createDate 2023-08-16 09:29:20
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
        implements SysRoleService {

    @Autowired
    SysRoleMapper sysRoleMapper;

    @Override
    public void InsertIntoRoleSysDict(String no, String role) {
        sysRoleMapper.insertRoleMenu(no, role);
    }

    @Override
    public void deleteRoleSysDict(String no) {
        sysRoleMapper.deleteRoleMenu(no);
    }

    @Override
    public List<String> selectRoleSysDict(String no) {
        return sysRoleMapper.selectRoleMenu(no);
    }

    @Override
    public Page pages(Page page, QueryWrapper<SysRole> queryWrapper) {

        return sysRoleMapper.pages(page, queryWrapper);
    }
}




